package com.itheima.project.properties;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

/**
 * @ClassName TenantProperties.java
 * @Description spring-cache多租户属性
 */
@Slf4j
@ConfigurationProperties(prefix = "spring.cache")
public class TenantCacheProperties {

    private List<String> ignoreEnterpriseTables;

    private List<String> ignoreStoreTables ;


    /**
     * 是否开启 true开启：数据隔离， false：关闭，全查
     */
    private Boolean tenantEnable = false;


    public List<String> getIgnoreEnterpriseTables() {
        return ignoreEnterpriseTables;
    }

    public void setIgnoreEnterpriseTables(List<String> ignoreEnterpriseTables) {
        this.ignoreEnterpriseTables = ignoreEnterpriseTables;
    }

    public List<String> getIgnoreStoreTables() {
        return ignoreStoreTables;
    }

    public void setIgnoreStoreTables(List<String> ignoreStoreTables) {
        this.ignoreStoreTables = ignoreStoreTables;
    }

    public Boolean getTenantEnable() {
        return tenantEnable;
    }

    public void setTenantEnable(Boolean tenantEnable) {
        this.tenantEnable = tenantEnable;
    }
}
